package com.oracle.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class XswsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public XswsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andXswsIdIsNull() {
            addCriterion("xsws_id is null");
            return (Criteria) this;
        }

        public Criteria andXswsIdIsNotNull() {
            addCriterion("xsws_id is not null");
            return (Criteria) this;
        }

        public Criteria andXswsIdEqualTo(Integer value) {
            addCriterion("xsws_id =", value, "xswsId");
            return (Criteria) this;
        }

        public Criteria andXswsIdNotEqualTo(Integer value) {
            addCriterion("xsws_id <>", value, "xswsId");
            return (Criteria) this;
        }

        public Criteria andXswsIdGreaterThan(Integer value) {
            addCriterion("xsws_id >", value, "xswsId");
            return (Criteria) this;
        }

        public Criteria andXswsIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("xsws_id >=", value, "xswsId");
            return (Criteria) this;
        }

        public Criteria andXswsIdLessThan(Integer value) {
            addCriterion("xsws_id <", value, "xswsId");
            return (Criteria) this;
        }

        public Criteria andXswsIdLessThanOrEqualTo(Integer value) {
            addCriterion("xsws_id <=", value, "xswsId");
            return (Criteria) this;
        }

        public Criteria andXswsIdIn(List<Integer> values) {
            addCriterion("xsws_id in", values, "xswsId");
            return (Criteria) this;
        }

        public Criteria andXswsIdNotIn(List<Integer> values) {
            addCriterion("xsws_id not in", values, "xswsId");
            return (Criteria) this;
        }

        public Criteria andXswsIdBetween(Integer value1, Integer value2) {
            addCriterion("xsws_id between", value1, value2, "xswsId");
            return (Criteria) this;
        }

        public Criteria andXswsIdNotBetween(Integer value1, Integer value2) {
            addCriterion("xsws_id not between", value1, value2, "xswsId");
            return (Criteria) this;
        }

        public Criteria andXsStudentidIsNull() {
            addCriterion("xs_studentid is null");
            return (Criteria) this;
        }

        public Criteria andXsStudentidIsNotNull() {
            addCriterion("xs_studentid is not null");
            return (Criteria) this;
        }

        public Criteria andXsStudentidEqualTo(Integer value) {
            addCriterion("xs_studentid =", value, "xsStudentid");
            return (Criteria) this;
        }

        public Criteria andXsStudentidNotEqualTo(Integer value) {
            addCriterion("xs_studentid <>", value, "xsStudentid");
            return (Criteria) this;
        }

        public Criteria andXsStudentidGreaterThan(Integer value) {
            addCriterion("xs_studentid >", value, "xsStudentid");
            return (Criteria) this;
        }

        public Criteria andXsStudentidGreaterThanOrEqualTo(Integer value) {
            addCriterion("xs_studentid >=", value, "xsStudentid");
            return (Criteria) this;
        }

        public Criteria andXsStudentidLessThan(Integer value) {
            addCriterion("xs_studentid <", value, "xsStudentid");
            return (Criteria) this;
        }

        public Criteria andXsStudentidLessThanOrEqualTo(Integer value) {
            addCriterion("xs_studentid <=", value, "xsStudentid");
            return (Criteria) this;
        }

        public Criteria andXsStudentidIn(List<Integer> values) {
            addCriterion("xs_studentid in", values, "xsStudentid");
            return (Criteria) this;
        }

        public Criteria andXsStudentidNotIn(List<Integer> values) {
            addCriterion("xs_studentid not in", values, "xsStudentid");
            return (Criteria) this;
        }

        public Criteria andXsStudentidBetween(Integer value1, Integer value2) {
            addCriterion("xs_studentid between", value1, value2, "xsStudentid");
            return (Criteria) this;
        }

        public Criteria andXsStudentidNotBetween(Integer value1, Integer value2) {
            addCriterion("xs_studentid not between", value1, value2, "xsStudentid");
            return (Criteria) this;
        }

        public Criteria andXsNameIsNull() {
            addCriterion("xs_name is null");
            return (Criteria) this;
        }

        public Criteria andXsNameIsNotNull() {
            addCriterion("xs_name is not null");
            return (Criteria) this;
        }

        public Criteria andXsNameEqualTo(String value) {
            addCriterion("xs_name =", value, "xsName");
            return (Criteria) this;
        }

        public Criteria andXsNameNotEqualTo(String value) {
            addCriterion("xs_name <>", value, "xsName");
            return (Criteria) this;
        }

        public Criteria andXsNameGreaterThan(String value) {
            addCriterion("xs_name >", value, "xsName");
            return (Criteria) this;
        }

        public Criteria andXsNameGreaterThanOrEqualTo(String value) {
            addCriterion("xs_name >=", value, "xsName");
            return (Criteria) this;
        }

        public Criteria andXsNameLessThan(String value) {
            addCriterion("xs_name <", value, "xsName");
            return (Criteria) this;
        }

        public Criteria andXsNameLessThanOrEqualTo(String value) {
            addCriterion("xs_name <=", value, "xsName");
            return (Criteria) this;
        }

        public Criteria andXsNameLike(String value) {
            addCriterion("xs_name like", value, "xsName");
            return (Criteria) this;
        }

        public Criteria andXsNameNotLike(String value) {
            addCriterion("xs_name not like", value, "xsName");
            return (Criteria) this;
        }

        public Criteria andXsNameIn(List<String> values) {
            addCriterion("xs_name in", values, "xsName");
            return (Criteria) this;
        }

        public Criteria andXsNameNotIn(List<String> values) {
            addCriterion("xs_name not in", values, "xsName");
            return (Criteria) this;
        }

        public Criteria andXsNameBetween(String value1, String value2) {
            addCriterion("xs_name between", value1, value2, "xsName");
            return (Criteria) this;
        }

        public Criteria andXsNameNotBetween(String value1, String value2) {
            addCriterion("xs_name not between", value1, value2, "xsName");
            return (Criteria) this;
        }

        public Criteria andXswsPfIsNull() {
            addCriterion("xsws_pf is null");
            return (Criteria) this;
        }

        public Criteria andXswsPfIsNotNull() {
            addCriterion("xsws_pf is not null");
            return (Criteria) this;
        }

        public Criteria andXswsPfEqualTo(String value) {
            addCriterion("xsws_pf =", value, "xswsPf");
            return (Criteria) this;
        }

        public Criteria andXswsPfNotEqualTo(String value) {
            addCriterion("xsws_pf <>", value, "xswsPf");
            return (Criteria) this;
        }

        public Criteria andXswsPfGreaterThan(String value) {
            addCriterion("xsws_pf >", value, "xswsPf");
            return (Criteria) this;
        }

        public Criteria andXswsPfGreaterThanOrEqualTo(String value) {
            addCriterion("xsws_pf >=", value, "xswsPf");
            return (Criteria) this;
        }

        public Criteria andXswsPfLessThan(String value) {
            addCriterion("xsws_pf <", value, "xswsPf");
            return (Criteria) this;
        }

        public Criteria andXswsPfLessThanOrEqualTo(String value) {
            addCriterion("xsws_pf <=", value, "xswsPf");
            return (Criteria) this;
        }

        public Criteria andXswsPfLike(String value) {
            addCriterion("xsws_pf like", value, "xswsPf");
            return (Criteria) this;
        }

        public Criteria andXswsPfNotLike(String value) {
            addCriterion("xsws_pf not like", value, "xswsPf");
            return (Criteria) this;
        }

        public Criteria andXswsPfIn(List<String> values) {
            addCriterion("xsws_pf in", values, "xswsPf");
            return (Criteria) this;
        }

        public Criteria andXswsPfNotIn(List<String> values) {
            addCriterion("xsws_pf not in", values, "xswsPf");
            return (Criteria) this;
        }

        public Criteria andXswsPfBetween(String value1, String value2) {
            addCriterion("xsws_pf between", value1, value2, "xswsPf");
            return (Criteria) this;
        }

        public Criteria andXswsPfNotBetween(String value1, String value2) {
            addCriterion("xsws_pf not between", value1, value2, "xswsPf");
            return (Criteria) this;
        }

        public Criteria andXsZyidIsNull() {
            addCriterion("xs_zyid is null");
            return (Criteria) this;
        }

        public Criteria andXsZyidIsNotNull() {
            addCriterion("xs_zyid is not null");
            return (Criteria) this;
        }

        public Criteria andXsZyidEqualTo(Integer value) {
            addCriterion("xs_zyid =", value, "xsZyid");
            return (Criteria) this;
        }

        public Criteria andXsZyidNotEqualTo(Integer value) {
            addCriterion("xs_zyid <>", value, "xsZyid");
            return (Criteria) this;
        }

        public Criteria andXsZyidGreaterThan(Integer value) {
            addCriterion("xs_zyid >", value, "xsZyid");
            return (Criteria) this;
        }

        public Criteria andXsZyidGreaterThanOrEqualTo(Integer value) {
            addCriterion("xs_zyid >=", value, "xsZyid");
            return (Criteria) this;
        }

        public Criteria andXsZyidLessThan(Integer value) {
            addCriterion("xs_zyid <", value, "xsZyid");
            return (Criteria) this;
        }

        public Criteria andXsZyidLessThanOrEqualTo(Integer value) {
            addCriterion("xs_zyid <=", value, "xsZyid");
            return (Criteria) this;
        }

        public Criteria andXsZyidIn(List<Integer> values) {
            addCriterion("xs_zyid in", values, "xsZyid");
            return (Criteria) this;
        }

        public Criteria andXsZyidNotIn(List<Integer> values) {
            addCriterion("xs_zyid not in", values, "xsZyid");
            return (Criteria) this;
        }

        public Criteria andXsZyidBetween(Integer value1, Integer value2) {
            addCriterion("xs_zyid between", value1, value2, "xsZyid");
            return (Criteria) this;
        }

        public Criteria andXsZyidNotBetween(Integer value1, Integer value2) {
            addCriterion("xs_zyid not between", value1, value2, "xsZyid");
            return (Criteria) this;
        }

        public Criteria andXsDormitoryidIsNull() {
            addCriterion("xs_dormitoryid is null");
            return (Criteria) this;
        }

        public Criteria andXsDormitoryidIsNotNull() {
            addCriterion("xs_dormitoryid is not null");
            return (Criteria) this;
        }

        public Criteria andXsDormitoryidEqualTo(Integer value) {
            addCriterion("xs_dormitoryid =", value, "xsDormitoryid");
            return (Criteria) this;
        }

        public Criteria andXsDormitoryidNotEqualTo(Integer value) {
            addCriterion("xs_dormitoryid <>", value, "xsDormitoryid");
            return (Criteria) this;
        }

        public Criteria andXsDormitoryidGreaterThan(Integer value) {
            addCriterion("xs_dormitoryid >", value, "xsDormitoryid");
            return (Criteria) this;
        }

        public Criteria andXsDormitoryidGreaterThanOrEqualTo(Integer value) {
            addCriterion("xs_dormitoryid >=", value, "xsDormitoryid");
            return (Criteria) this;
        }

        public Criteria andXsDormitoryidLessThan(Integer value) {
            addCriterion("xs_dormitoryid <", value, "xsDormitoryid");
            return (Criteria) this;
        }

        public Criteria andXsDormitoryidLessThanOrEqualTo(Integer value) {
            addCriterion("xs_dormitoryid <=", value, "xsDormitoryid");
            return (Criteria) this;
        }

        public Criteria andXsDormitoryidIn(List<Integer> values) {
            addCriterion("xs_dormitoryid in", values, "xsDormitoryid");
            return (Criteria) this;
        }

        public Criteria andXsDormitoryidNotIn(List<Integer> values) {
            addCriterion("xs_dormitoryid not in", values, "xsDormitoryid");
            return (Criteria) this;
        }

        public Criteria andXsDormitoryidBetween(Integer value1, Integer value2) {
            addCriterion("xs_dormitoryid between", value1, value2, "xsDormitoryid");
            return (Criteria) this;
        }

        public Criteria andXsDormitoryidNotBetween(Integer value1, Integer value2) {
            addCriterion("xs_dormitoryid not between", value1, value2, "xsDormitoryid");
            return (Criteria) this;
        }

        public Criteria andCjTimeIsNull() {
            addCriterion("cj_time is null");
            return (Criteria) this;
        }

        public Criteria andCjTimeIsNotNull() {
            addCriterion("cj_time is not null");
            return (Criteria) this;
        }

        public Criteria andCjTimeEqualTo(Date value) {
            addCriterion("cj_time =", value, "cjTime");
            return (Criteria) this;
        }

        public Criteria andCjTimeNotEqualTo(Date value) {
            addCriterion("cj_time <>", value, "cjTime");
            return (Criteria) this;
        }

        public Criteria andCjTimeGreaterThan(Date value) {
            addCriterion("cj_time >", value, "cjTime");
            return (Criteria) this;
        }

        public Criteria andCjTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("cj_time >=", value, "cjTime");
            return (Criteria) this;
        }

        public Criteria andCjTimeLessThan(Date value) {
            addCriterion("cj_time <", value, "cjTime");
            return (Criteria) this;
        }

        public Criteria andCjTimeLessThanOrEqualTo(Date value) {
            addCriterion("cj_time <=", value, "cjTime");
            return (Criteria) this;
        }

        public Criteria andCjTimeIn(List<Date> values) {
            addCriterion("cj_time in", values, "cjTime");
            return (Criteria) this;
        }

        public Criteria andCjTimeNotIn(List<Date> values) {
            addCriterion("cj_time not in", values, "cjTime");
            return (Criteria) this;
        }

        public Criteria andCjTimeBetween(Date value1, Date value2) {
            addCriterion("cj_time between", value1, value2, "cjTime");
            return (Criteria) this;
        }

        public Criteria andCjTimeNotBetween(Date value1, Date value2) {
            addCriterion("cj_time not between", value1, value2, "cjTime");
            return (Criteria) this;
        }

        public Criteria andUpTimeIsNull() {
            addCriterion("up_time is null");
            return (Criteria) this;
        }

        public Criteria andUpTimeIsNotNull() {
            addCriterion("up_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpTimeEqualTo(Date value) {
            addCriterion("up_time =", value, "upTime");
            return (Criteria) this;
        }

        public Criteria andUpTimeNotEqualTo(Date value) {
            addCriterion("up_time <>", value, "upTime");
            return (Criteria) this;
        }

        public Criteria andUpTimeGreaterThan(Date value) {
            addCriterion("up_time >", value, "upTime");
            return (Criteria) this;
        }

        public Criteria andUpTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("up_time >=", value, "upTime");
            return (Criteria) this;
        }

        public Criteria andUpTimeLessThan(Date value) {
            addCriterion("up_time <", value, "upTime");
            return (Criteria) this;
        }

        public Criteria andUpTimeLessThanOrEqualTo(Date value) {
            addCriterion("up_time <=", value, "upTime");
            return (Criteria) this;
        }

        public Criteria andUpTimeIn(List<Date> values) {
            addCriterion("up_time in", values, "upTime");
            return (Criteria) this;
        }

        public Criteria andUpTimeNotIn(List<Date> values) {
            addCriterion("up_time not in", values, "upTime");
            return (Criteria) this;
        }

        public Criteria andUpTimeBetween(Date value1, Date value2) {
            addCriterion("up_time between", value1, value2, "upTime");
            return (Criteria) this;
        }

        public Criteria andUpTimeNotBetween(Date value1, Date value2) {
            addCriterion("up_time not between", value1, value2, "upTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}